Renowned Brazilian architect Oscar Niemeyer has been released from a hospital in Rio de Janeiro.

A hospital spokeswoman says Monday that the 104-year-old was released on Saturday. He had been hospitalized for two weeks because of dehydration.

Niemeyer also spent two weeks in the Hospital Samaritano in May for pneumonia and dehydration. Last year, he was treated for a urinary infection there.

Niemeyer designed much of Brazil's futuristic capital, Brasilia, and Rio's Sambadrome, where the annual carnival parade is held. He also helped design the United Nations building in New York City.