50In the light of all the foregoing, the answer to the question is that Directive 2008/115 must be interpreted as:— precluding legislation of a Member State laying down criminal penalties for illegal stays, in so far as that legislation permits the imprisonment of a third-country national who, though staying illegally in the territory of the said Member State and not being willing to leave that territory voluntarily, has not been subject to the coercive measures referred to in Article 8 of that directive and has not, being placed in detention with a view to the preparation and carrying out of his removal, yet reached the end of the maximum term of that detention; and— not precluding such legislation in so far as the latter permits the imprisonment of a third-country national to whom the return procedure established by the said directive has been applied and who is staying illegally in that territory with no justified ground for non-return.
Source: EUR-Lex, © European Union, 1998-2026. Reuse authorised under Decision 2011/833/EU.