Detroit served as the state's capital until 1847, when it was moved to Lansing. The present capitol building, located at the intersection of Capitol and Michigan avenues, is the third building to house the Michigan state government.