The phrase to the maximum extent permitted by law is sometimes used in a provision which may, depending on the circumstances or the applicable law, turn out to be invalid or unenforceable. Such provisions include in particular clauses limiting the liability of a party and non-compete clauses (both in commercial setting and in employment agreements). For example:

Until one year after the termination or expiration of this Agreement and to the maximum extent permitted by law, Employee shall not, directly or indirectly, for own benefit or for the benefit of third parties, undertake or facilitate any activities in a field of business equal or similar to a business of Employer or otherwise in direct or indirect competition with Employer.

The phrase to the maximum extent permitted by law is redundant to the extent that any statutory (or other legal) limitations do not prohibit or restrict the referenced provision. This must be distinguished from the case where two commercial parties negotiate a normal contract and are free to agree on prohibitions and restrictions (as opposed to the case where those parties deal on a questionable basis of either party’s general terms and conditions). In such ‘negotiated’ contracts, the limitation of liability would not be invalid or unenforceable, because no party can be deemed to have disagreed to such ‘negotiated’ limitation The phrase may be useful if the parties do not want to investigate where and to what extent such limitations apply or if there is a reasonable likelihood that, at some point in time, the applicable law may become more restrictive.

To the maximum extent permitted by law may also serve as a hint to a court that, in case it considers the invalidity or unenforceability of the clause, it should also nevertheless impose some kind of limitation or prohibition. This argument is not very convincing because a court should anyhow consider the appropriateness of giving at least some effect to the litigated provision.