RIO DE JANEIRO (AP) -- 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, died on Wednesday. He was 104.
Elisa Barboux, a spokeswoman for the Hospital Samaritano in Rio de Janeiro, confirmed Niemeyer's death and said the cause was a respiratory infection. He had been hospitalized for several weeks and also on separate occasions earlier this year, suffering from kidney problems, pneumonia and dehydration.
Dr. 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 at a press conference. "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 airplane-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 2 million, critics said it lacked "soul" as well as street corners, "a utopian horror," in the words of art critic Robert Hughes.
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 age 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 330-foot-tall (100-meter) obelisk he envisioned would mar the very skyline the architect created a half-century earlier. Niemeyer relented on the plaza, only to unveil new plans for a 165-foot-tall (50-meter) 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.
Oscar Niemeyer Soares Filho was born on Dec. 15, 1907, in Rio de Janeiro, and earned his architecture degree at Rio's School of Fine Arts.
Working in Costa's office in 1936, he helped design a Rio education ministry building that was a classic of functionalist horizontal and vertical lines. With modernist giant Le Corbusier, Niemeyer developed the "brise soleil," a heat protector that enhanced the building's grid design and became an architectural standard in the 1960s.
Niemeyer teamed up again with Le Corbusier in 1947 to design much of the United Nations complex in New York. After months of squabbling with architects -- most notably Le Corbusier -- Niemeyer came up with the final plan for the complex, including the Secretariat, General Assembly and conference buildings and the Dag Hammarskjold Library.
But Niemeyer already was chafing at the limits of form-follows-function architecture.
His first solo project was the Pampulha complex of buildings set on an artificial lake in the central Brazilian city of Belo Horizonte, now Brazil's third-largest metro area. For the first time, Niemeyer employed the curves and arches that would become his hallmark.
Not everyone was pleased. The St. Francis church, built in a series of parabolic arches resembling waves, was shunned for years by Catholics who considered it an offense to Christianity. Finished in 1944, the church wasn't inaugurated as a place of worship until the late 1950s.