Erik Lallerstedt was born on 19 April 1864 in Skå parish, the son of the estate owner Erik Ernst Lallerstedt and Hedvig, née Werner. From 1882 to 1889 he studied at Kungliga Tekniska högskolan (KTH) and the Konstakademien (Academy of Fine Arts) in Stockholm. From 1890 to 1944 he ran his own architectural practice in the city. From 1907 to 1929 he was professor of architecture at KTH, and in 1907 he married Elin Ericsson.
His better-known churches from around the turn of the century stand in Vasastaden: Peterskyrkan on Upplandsgatan and Sankt Matteus kyrka on Dalagatan, built from 1901 to 1903. He later regarded Matteuskyrkan as a sin of his youth and radically changed its interior in 1925. For private railway companies he designed station buildings, among them on the line between Stockholm and Västerås, with the station at Spånga. He became known for monumental brick architecture. Trygghuset on Birger Jarlsgatan was built after a competition, and in 1911 to 1912 he won the competition for Kungliga Tekniska högskolan. The buildings went up in stages until 1922, and the expansion kept him busy until 1940. They are grouped around a series of courtyards in dark brick and granite, with a monumental forecourt facing Valhallavägen.
For the insurance company Thule he designed, together with Ture Ryberg, the building on Kungsträdgårdsgatan, erected from 1915 to 1917 after a competition. Its rusticated ground floor recalls a Florentine palace. He also designed the building for the humanities and law faculties of Stockholms högskola on Norrtullsgatan, erected from 1925 to 1926, and a long series of buildings for the Riksbank and the postal service. Together with David Helldén and Sigurd Lewerentz he created the Malmö city theatre, carried out from 1940 to 1944. He sat on the building board of the city of Stockholm from 1917 to 1934. Erik Lallerstedt died on 2 February 1955 in Stockholm.
