This note is meant to introduce the reader to a duality principle for nonlinear equations recently discovered in [74,54,50]. Motivations come from the desire to give a unifying potential-theoretic framework for various maximum principles at infinity appearing in the literature (Ekeland, Omori-Yau, Pigola-Rigoli-Setti), as well as to describe their interplay with properties coming from stochastic analysis on manifolds. The duality involves an appropriate version of these principles formulated for viscosity subsolutions of fully nonlinear inequalities, called the Ahlfors property, and the existence of suitable exhaustion functions called Khas'minskii potentials. Applications, also involving the geometry of submanifolds, will be discussed in the last sections. We conclude by investigating the stability of these maximum principles when we remove polar sets.