The Prince and the Pauper (1962)
In the London of 1537, two boys resembling each other exactly meet accidentally and exchange "roles" for a short while. After many adventures, the prince regains his rightful identity and graciously makes his "twin" a ward of the court.
Some information and/or images in this header may be provided either partially or in full from The Movie Database.