Answer
King Dom João VI of Portugal served as prince regent when Maria I developed clinical depression. This was due to the fact that Maria was not able to carry out her duties as queen due to her mental illness. João VI was able to take over the role of regent and rule the country in her place.