The classical Hilbert and Hardy integral inequalities are derived within a functional analytic framework. That framework is further used to generate a new inequality, sharper than Hilbert's.