Astronomical engineering

Engineering on an astronomical scale, or astronomical engineering, i.e., engineering involving operations with whole astronomical objects (planets, stars, etc.), is a known theme in science fiction, as well as a matter of recent scientific research and exploratory engineering.

On the Kardashev scale, Type II and Type III civilizations can harness energy on the required scale. This can allow them to construct megastructures.

Exploratory engineering

 * Dyson spheres or Dyson swarm and similar constructs are hypothetical megastructures originally described by Freeman Dyson as a system of orbiting solar power satellites meant to enclose a star completely and capture most or all of its energy output.
 * Star lifting is a process where an advanced civilization could remove a substantial portion of a star's matter in a controlled manner for other uses.
 * Matrioshka brains
 * Stellar engine
 * An Alderson disk (named after Dan Alderson, its originator) is a hypothetical artificial astronomical megastructure, a giant platter with a thickness of several thousand miles. The Sun rests in the hole at the center of the disk.  The outer perimeter of an Alderson disk would be roughly equivalent to the orbit of Mars or Jupiter.
 * A stellaser is a star-powered laser.

Science fiction

 * In the Ringworld series by Larry Niven, a ring a million miles wide is built and spun (to simulate gravity) around a star roughly one astronomical unit away. The ring can be viewed as a functional version of a Dyson sphere with the interior surface area of 3 million Earth-sized planets.  Because it is only a partial Dyson sphere, it can be viewed as a construction of a civilization intermediary between Type I and Type II.  Both Dyson spheres and the Ringworld suffer from gravitational instability, however—a major focus of the Ringworld series is coping with this instability in the face of partial collapse of the Ringworld civilization.
 * The Morlocks of Stephen Baxter's The Time Ships occupy a spherical shell around the Sun the diameter of Earth's orbit, spinning for gravity along one band. The shell's inner surface along this band is inhabited by cultures in many lower stages of development, while the K II Morlock civilization uses the entire structure for power and computation.
 * In the Star Trek: The Next Generation episode "Relics", the Enterprise discovers an abandoned Dyson sphere.
 * In the Halo universe, the Forerunners created many planet-sized artificial megastructures, such as the Halo ringworlds, the two Arks, and the Shield Worlds, which were micro-Dyson spheres. One of the Precursors' most well known creations were the Star Roads: immense, indestructible cables that connected planets and star systems.
 * In the movie Elysium, a large-scale space habitat has been built to orbit Earth and is capable of sustaining life permanently.
 * In the Corellian Trilogy (Star Wars Legends books), the Corellian system is revealed to have been constructed by an unknown ancient civilization, using Centerpoint Station to transport the planets across interstellar distances, and "planetary repulsors" to maneuver the planets into their orbits.
 * In Iain M. Banks' fictional Culture universe, an Orbital is a purpose-built space habitat forming a ring typically around 3 million km (1.9 million miles) in diameter. The rotation of the ring simulates both gravity and a day-night cycle comparable to a planetary body orbiting a star.
 * The Dyson shell is the variant of the Dyson sphere most often depicted in fiction. It is a uniform solid shell of matter around the star, as opposed to a swarm of orbiting satellites. In response to letters prompted by some papers, Dyson replied, "A solid shell or ring surrounding a star is mechanically impossible. The form of 'biosphere' which I envisaged consists of a loose collection or swarm of objects travelling on independent orbits around the star."