Ervine's career-best effort lifted Zimbabwe from a precarious 70-4 to 344-8 at stumps. Sri Lanka spinner Rangana Herath took four wickets.
The left-handed batsman held on with Donald Tiripano (24 not out) at the end of play, putting on a frustrating 62-run stand for the ninth wicket.
Ervine, who surpassed his previous Test best of 146, built crucial partnerships including a 84-run fifth-wicket stand with Sikandar Raza (36).
It was the 31-year-old's second Test ton in the 12th match of his seven-year-old international career.
Herath sent back openers Regis Chakabva for 12 and Hamilton Masakadza for 19 to rattle the Zimbabwe top-order at the R Premadasa Stadium in Colombo.
Paceman Lahiru Kumara got debutant batsman Tarisai Musakanda caught behind for six as Zimbabwe suffered regular losses in the first two sessions.
Herath took Raza and then Malcolm Waller (36) but Ervine stood firm from one end to thwart Sri Lanka's bowlers.
Medium-pace bowler Asela Gunaratne claimed two wickets while off-spinner Dilruwan Perera and Kumara took a wicket each.
Disclaimer: No Business Standard Journalist was involved in creation of this content
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
