66-year-old Makrey, beat Republican candidate Gabriel E Gomez.
The special elections for Senate seat in Massachusetts were necessitated after the resignation of Kerry as he was nominated as the Secretary of State by President Barack Obama.
Late in the night, Obama called Markey to congratulate him on his electoral victory.
"During more than 36 years as a Congressman, Ed has distinguished himself as a leader on many of the key challenges of our time-from fighting carbon pollution to protecting our children from gun violence to creating good, middle-class jobs," Obama said.
More From This Section
"The people of Massachusetts can be proud that they have another strong leader fighting for them in the Senate, and people across the country will benefit from Ed's talent and integrity," Obama said.
Markey is known as a India basher in the Congress.
An arch defender of nuclear non-proliferation regime, Markey led a group of US lawmakers to campaign against the Indo-US civilian nuclear deal, which was eventually passed by the US Congress.
Markey had then accused the then Bush Administration as blowing an enormous hole in the nuclear nonproliferation regime by granting unprecedented concessions to India, a country that has never signed the Nuclear Nonproliferation Treaty.