From next season, BT Sport viewers will be able to watch the package of matches currently shown on ESPN.
SPL chief executive Neil Doncaster said: "We look forward to working closely with BT from the beginning of next season. The announcement is positive for the Scottish game.
"It means that top-flight football will continue to be broadcast by Sky Sports and now BT, providing a solid financial bedrock and the best possible platform to promote the game in Scotland."
ESPN announced a five-year agreement with the SPL in August last year, which gave them the right to screen 30 matches as well as 10 Rangers games in the Irn-Bru Third Division.