Six Paths — Chibaku Tensei

The God: August Star of Heaven technique is a highly advanced fūinjutsu which was used to seal away two very dangerous beings: Kaguya Ōtsutsuki (as the Ten-Tails) and her grandson Myoken.

Usage
By combining the powers of yin and yang, symbolized by markings on the users' palms, one must make physical contact with their intended target. Doing so forcibly converts the target into a Chibaku Tensei core, which is then manipulated by a user of the Rinnegan and turned into an enormous celestial body in order to trap the intended target forever.

Optionally, the Rinnegan user can also strip the target of all of their chakra, sealing it within either themselves of another intended target.

Countering
According to Madara Uchiha, awakening the Rinnegan can break the seal if the user has proper knowledge. In the case of Myoken, the Myōgan had to once again manifest in his descendants before the seal could be broken.

Trivia

 * In both Kaguya and Myoken's cases, the seal was broken, freeing them, only for them to be sealed a second time by their descendants.