Mastery made his debut in a maiden race at Nottingham in October 2008. Starting at odds of 15/2 he led from the start and won by four and a half lengths despite being eased in the closing stages. Nine days later he finished third to Chater Way in a minor stakes race at Newmarket. At the end of the season, Mastery was transferred to the ownership of Godolphin Racing and moved to the stable of Saeed Bin Suroor.
2009: three-year-old season
Mastery began his three-year-old season by finishing fourth to Mafaaz in a race on the all-weather surface at Kempton in March. He was then moved up in class to contest the Group Two Derby Italiano at Rome's Capannelle Racecourse in May. Ridden for the first time by Frankie Dettori he raced just behind the leaders before taking the lead 100m from the finish and winning by one and a half lengths from Turati and Jakkalberry. In summer, Mastery was placed in his next three races. He finished third to Holberg in the Queen's Vase at Royal Ascot, third to Cavalryman in the Grand Prix de Paris and second to the Irish-trained Monitor Closely in the Great Voltigeur Stakes. In September, Mastery was sent to Doncaster for the St Leger in which he was ridden by Ted Durcan, Dettori having chosen to ride the favourite Kite Wood. Mastery started a 14/1 outsider in a field of eight runners. Mastery tracked the leaders before challenging in the straight. He stayed on "gamely" to take the lead close to the finish and won by three quarters of a length from Kite Wood and Monitor Closely. On his final start of the season, Mastery was sent to Santa Anita Park where he started favourite for the Breeders' Cup Marathon in which he finished third to Man of Iron and Cloudy's Knight.
2010: four-year-old season
Mastery made his first appearance of 2010 in the Dubai World Cup at Meydan Racecourse on 27 March. He finished fifth, beaten one and a half lengths by the Brazilian-bred Gloria De Campeao. He was then off the racecourse for more than six months before finishing third to Tazee in the Darley Stakes at Newmarket in October. Three weeks later he recorded his first win in over a year when he dead-heated with Dansili Dancer in a Listed race at Kempton. On his final start of 2010, Mastery was sent to Hong Kong to contest the Hong Kong Vase at Sha Tin Racecourse on 12 December. He started at odds of 19/5 in a field which included the Melbourne Cup winner Americain, the Tenno Sho winner Jaguar Mail and the local champion Viva Pataca. Dettori settled the colt in third place before taking the lead in the straight. Mastery went clear of his rivals and "kept on strongly" to win by two and a half lengths from Redwood, with Americain third. Mastery was transferred by Godolphin to Darley and sold to Russia.