Established in 1871, Mexia was named for the Mexican General José Antonio Mexia whose family donated the townsite. The general first served under Santa Anna, but later joined an uprising against the Mexican dictator. The rebellion failed, and the city's namesake died before a firing squad.
Natural gas was discovered nearby in 1912, and an oil gusher blew nine years later. The resulting boom brought a rowdy period marked by violence and martial law. As in most cases, the boom faded quickly, and Mexia today is a flourishing community that is devoted to economic growth.
Mexia marks the country's independence with its Boomin' on the 4th Celebration and Rodeo, which is held the last weekend in June. Festivities include concerts, sporting events, a car show, rodeo, and kids' events.