A compact soft/hard surface (SHS) structure consisting of a square ring of shortcircuited metal strips is employed to surround the patch antenna for blocking the surfacewave propagation, thus alleviating the effect of the edge diffraction and hence improving the radiation pattern. The operating frequency of the SHS is determined by the width of the metal strip, therefore it is suitable for a substrate with arbitrary thickness and dielectric constant. The compact SHS structure is realized on a low temperature co-fired ceramics (LTCC) technology. It is shown that the gain of a patch antenna can be increased to near 9 dBi through the use of the proposed compact SHS structure.