Former Rep. Albert McKinley Rains, who wrote some of the nation's most important housing laws during two decades in Congress, has died at age 89.

Rains died late Friday at Holy Name of Jesus Medical Center, where he had been hospitalized about a month with pneumonia, said Carol Fragnoli, a nursing supervisor.Rains was elected to Congress in 1944 as a Democrat, representing Alabama's 5th District. He retired in 1965. Rains wrote most of the housing bills passed during his tenure, including bills for expanded programs under the Federal Housing Administration.

He is survived by his wife, Allison, and a sister. Funeral services are set for Monday in Gadsden.