The officer is thought to have suffered multiple stab wounds while arresting a suspect.
The incident happened shortly after 5pm on Friday on the Mound in the centre of Edinburgh during rush hour.
Both the injured officer and the suspect were taken to Edinburgh Royal Infirmary for treatment. No details were released about his condition.
The officer was part of an armed response team on routine patrol in the area.