Here, we show that the approximately 10-million-year-old beta Pictoris system hosts a massive giant planet, beta Pictoris b, located 8 to 15 astronomical units from the star. This result confirms that gas giant planets form rapidly within disks and validates the use of disk structures as fingerprints of embedded planets. Among the few planets already imaged, beta Pictoris b is the closest to its parent star. Its short period could allow for recording of the full orbit within 17 years.