We define a variational principle for symplectic connections of the Yang-Mi
lls type. When the symplectic manifold is a compact surface we show that th
e moduli space of the connections which are extremals of the functional coi
ncides with the Teichmuller space of the surface. We indicate that the nonc
ompact situation is very different.