The technique of surface X-ray diffraction is briefly introduced. By discussing two examples, the homoepitaxial growth of Ag crystals and the formation of erbium silicide on Si(111), it is demonstrated that X-ray diffraction allows the determination of both structure and morphology at surfaces and interfaces.