The Fantastic Four have defeated Galactus multiple times, each with different tactics:
Silver Surfer rebels, appeals to FF. They use his board's cosmic energy to overload Galactus's device, weakening him. Surfer redirects the attack, sending Galactus into the sun.
Galactus manipulated by Abraxas. FF separate them, free Galactus, then convince him to help defeat Abraxas.
Galactus turns on heroes, targets Earth. FF and allies launch massive attack, using the Ultimate Nullifier to destroy him—at the cost of the universe, which is then recreated.
Note: Galactus is a cosmic entity; defeats are often temporary. FF win through cunning, ingenuity, and luck.