A chip package structure comprises a carrier, a chip and an underfill. The
chip has an active surface on which a plurality of bumps are formed. The
chip is flip-chip bonded onto the carrier with the active surface facing
the carrier, and is electrically connected to the carrier through the
bumps. The underfill is filled between the chip and the carrier. A
portion of the underfill near the chip serves as a first underfill
portion. The portion of the underfill near the carrier serves as a second
underfill portion. The Young's modulus of the first underfill portion is
smaller than the Young's modulus of the second underfill portion. The
second underfill portion can be optionally replaced with a selected
encapsulation. The selected encapsulation covers the chip and the carrier
around the chip.