Conventionally, he/she resigns when the government (council of ministers) resigns or is replaced, as he/she is appointed on its advice.