The invention relates to a medical system for applying a medical procedure. The medical system (1) comprises a medical device (5) like a surgical robot with a surgical instrument (24) for performing the medical procedure, wherein the medical device is adapted to perform a movement, for instance, a movement of the surgical instrument, relative to a reference device like a patient table (9) for applying the medical procedure. The medical device is attached to a wall and/or a ceiling (3) of a room (2) by an attaching system (7) and rigidly attached to the reference device by a fixation element (8). Due to the attachment to the wall and/or the ceiling, the weight of the medical device does not need to be completely carried by, for instance, the patient table, wherein, due to the rigid attachment to the reference device, the medical procedure can still very accurately be performed.