Ali was born Mahershalalhashbaz Gilmore in 1974, in Oakland, California, the son of Willicia and Phillip Gilmore. He was raised in Hayward, California.[3] His father was an actor who appeared on Broadway.[2] He attended St. Mary's College of California (SMC) in Moraga, California where he graduated in 1996 with a degree in mass communication.[3]