The recent ruling of the Court of Cassation clarifies the conditions for the reimbursement of legal fees in favor of the Ministry of Economy and Finance in cases of compensation for wrongful detention, highlighting the importance of the defense activity in the legitimacy judgment.