Astronomers have discovered thousands of planets outside the solar system 1 , most of which orbit stars that will eventually evolve into red giants and then into white dwarfs. During the red giant phase, any close-orbiting planets will be engulfed by the star 2 , but more distant planets can survive this phase and remain in orbit around the white dwarf 3,4 . Some white dwarfs show evidence for rocky material floating in their atmospheres 5 , in warm debris disks [6][7][8][9] , or orbiting very closely [10][11][12] , which has been interpreted as the debris of rocky planets that were scattered inward and tidally disrupted 13 . Recently, the discovery of a gaseous debris disk with a composition similar to ice giant planets 14 demonstrated that massive planets might also find their way into tight orbits around white dwarfs, but it is unclear whether the planets can survive the journey. So far, the detection of intact planets in close orbits around white dwarfs has remained elusive. Here, we report the discovery of a giant planet candidate transiting the white dwarf WD 1856+534 (TIC 267574918) every 1.4 days. The planet candidate is roughly the same size as Jupiter and is no more than 14 times as massive (with 95% confidence). Other cases of white dwarfs with close brown dwarf or stellar companions are explained as the consequence of common-envelope evolution, wherein the original orbit is enveloped during the red-giant phase and shrinks due to friction. In this case, though, the low mass and relatively long orbital period of the planet candidate make common-envelope evolution less likely. Instead, the WD 1856+534 system seems to demonstrate that giant planets can be scattered into tight orbits without being tidally disrupted, and motivates searches for smaller transiting planets around white dwarfs. WD 1856+534 (hereafter, WD 1856 for brevity) is located 25 parsecs away in a visual triple star system. It has an effective temperature of 4710 ± 60 Kelvin and became a white dwarf 5.9 ± 0.5 billion years ago, based on theoretical models for how white dwarfs cool over time. The total system age, including the star's main sequence lifetime, must be older. Table 1 gives the other key parameters of the star. WD 1856 is one of thousands of white dwarfs that was targeted for observations with NASA's Transiting Exoplanet Survey Satellite (TESS ), in order to search for any periodic dimming events caused by planetary transits. A statistically significant transit-like event was detected by the TESS Science Processing Operations Center (SPOC) pipeline based