The Spanish constitution at the time of the abdication did not grant an abdicated monarch the legal immunity of a head of state, but the government changed the law to allow this. However, unlike his previous immunity, the new legislation left him accountable to the supreme court, in a similar type of protection afforded to many high-ranking civil servants and politicians in Spain. The legislation stipulates that all outstanding legal matters relating to the former king be suspended and passed "immediately" to the supreme court.