Morocco's King Mohammed VI has undergone "successful" heart surgery at the royal palace's clinic in Rabat, the state news agency MAP reported.
MAP said the king suffered from arrhythmia, which was tackled using the radiofrequency treatment, conducted on 14 June.
The procedure is performed to treat patients who are experiencing problems with abnormal heart rhythm.
"This surgery was crowned with complete success," MAP said, citing a report from the king's medical team of five doctors.
The report added that the surgery managed to regulate the king's heartbeat, returning it to normal.
This is the king's second treatment for heart problems. In February 2018, he underwent surgery in Paris after MAP reported arrhythmia or irregular heartbeat.
Mohammed VI acceded the throne in 1999 after his father Hassan II died of a heart attack.