Its design work started in 1945. It was accepted as a standard Russian soldier weapon in 1949.
With the passage of the time it became on of the most praised weapon around the world.
In 1956 in a war between Hungary and Russia when Russian force were defeated the Hungarian forces took the gun for their use.
They found it to be the better weapon to be included in their combat arms. So they started making replicas of it.