It took three visits to the table and runs of 10, 32 and 42 for Mehta to secure the first frame before breaks of 81 and 132 opened up a three-frame advantage.
However, Maguire, seeded fifth, drew on his experience to claw level with breaks of 68, 48 and 61 to send the match to a decider.
Mehta eventually prevailed in a tense, scrappy final frame 67-45 to make the Indian Open’s inaugural final having yesterday become the first Indian to reach the semi-finals of a ranking event with a 4-3 win over countryman Pankaj Advani.
Earlier, Ding made light work of 76th seed Robbie Williams with a 4-1 semi-final win to progress to the final.
Ding, seeded 11th for the tournament, raced into a three-frame lead courtesy of breaks of 68, 59 and an impressive 142 before Williams cut the arrears with runs of 20 and 67 in the fourth frame.
While Williams was first to get his hand on the table in frame five, he could only muster a 28 before Ding wrapped up the match courtesy of two visits.