Architect Oscar Niemeyer, who recreated Brazil’s sensuous curves in reinforced concrete and built the capital of Brasilia on the empty central plains as a symbol of the nation’s future, has died at 104.

Elisa Barboux, a spokeswoman for the Hospital Samaritano in Rio de Janeiro, said Niemeyer died from a respiratory infection. He had been in hospital for several weeks and also on separate occasions earlier this year, suffering from kidney problems, pneumonia and dehydration.

Fernando Gjorup, Niemeyer’s physician, said the architect worked on pending projects in the days before his death, taking visits from engineers and other professionals.

“The most impressive thing is that his body suffered but his mind was lucid,” Gjorup said. “He didn’t talk about death, never talked about death. He talked about life.”

In works from Brasilia’s crown-shaped cathedral to the undulating French Communist Party building in Paris, Niemeyer shunned the steel-box structures of many modernist architects, finding inspiration in nature’s crescents and spirals.

His hallmarks include much of the United Nations complex in New York and the Museum of Modern Art in Niteroi, which is perched like a flying saucer across Guanabara Bay from Rio de Janeiro.

“Right angles don’t attract me. Nor straight, hard and inflexible lines created by man,” he wrote in his 1998 memoir The Curves of Time.

“What attracts me are free and sensual curves. The curves we find in mountains, in the waves of the sea, in the body of the woman we love.”

His curves give sweep and grace to Brasilia, the city that opened up Brazil’s vast interior in the 1960s and moved the nation’s capital from coastal Rio.

Niemeyer designed most of the city’s important buildings, while French-born, avant-garde architect Lucio Costa crafted its distinctive plane-like layout. Niemeyer left his mark in the flowing concrete of the Cabinet ministries and the monumental dome of the national museum.

As the city grew to two million, critics said it lacked “soul” as well as street corners, “a utopian horror”, in the words of art critic Robert Hughes.

But Niemeyer shrugged off the criticism. “If you go to Brasilia you might not like it, say there’s something better, but there’s nothing just like it,” he said in an interview with O Globo newspaper in 2006 at the age of 98.

“I search for surprise in my architecture. A work of art should cause the emotion of newness.”

Even late in life, Niemeyer was striving for renewal. In 2009 he came under heavy criticism for proposing to build a Plaza of Sovereignty in the heart of Brasilia.

Preservationists said the 100-metre obelisk he envisaged would mar the very skyline the architect created half a century earlier. Niemeyer relented on the plaza, only to unveil new plans for a 50-metre tower in the same spot.

Living well past the century mark, Niemeyer’s journey mirrored that of his beloved Brazil, and his restless modernism captured the developing country’s sweeping ambitions.

With hundreds of his buildings dotting the landscape, arguably no other architect shared as tight a bond with a country as Niemeyer did with Brazil.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.