We investigate the strain properties of GaN films grown by plasma-assisted molecular beam epitaxy on Si(110) substrates. It is found that the strain of the GaN film can be converted from a tensile to a compressive state simply by inserting a thin AlN/GaN superlattice structure (SLs) within the GaN film. The GaN layers seperated by the SLs can have different strain states, which indicates that the SLs plays a key role in the strain modulation during the growth and the cooling down processes. Using this simple technique, we grow a crack-free GaN film exceeding 2-μm-thick. The realization of the compressively strained GaN film makes it possible to grow thick GaN films without crack generation on Si substrates for optic and electronic device applications.