Answer
Three terms in total were served by Marion Barry as mayor. He held office from 1979 to 1991, then again from 1995 to 1999, and finally from 2007 to 2011. During his tenure, he focused on improving education, healthcare, and affordable housing in Washington, D.C., and became a prominent figure in local and national politics.