We consider a quadratic Liénard equation with an unbounded homoclinic loop, which is a solution tending in forward and backward time to a non-hyperbolic equilibrium point located at infinity. Under small time-periodic perturbation, this equilibrium becomes a normally hyperbolic line of singularities at infinity. We show that the perturbed system may present homoclinic bifurcations, leading to the existence of transverse intersections between the stable and unstable manifolds of such a normally hyperbolic line of singularities. The global study concerning the infinity is performed using the Poincaré compactification in polar coordinates, from which we obtain a system defined on a set equivalent to a solid torus in R 3 , whose boundary plays the role of the infinity. The transversality of the manifolds is proved using the Melnikov method and implies, via the Birkhoff–Smale Theorem, a complex dynamical behaviour of the perturbed system solutions in the finite part of the phase space. Numerical simulations are performed in order to illustrate this behaviour, which could be called “ the chaos arising from infinity”, since it depends on the global structure of the Liénard equation, including the points at infinity. Although applied to a particular case, the analysis presented provides a geometrical approach to study periodic perturbations of homoclinic (or heteroclinic) loops to infinity of any planar polynomial vector field.