Z-Moves require both trainer wearing a Z-Ring with a Z-Crystal and Pokemon as a once-per-battle "limit break". Z-Moves can be used if the pokemon know a move that matches the type of their Z-Crystal. For example, if Beartic knows a Water-Type attacking move and the trainer has the Waterium Z, Beartic can use the Water Type Z-Move known as "Hydro Vortex" According to the anime, Pokemon and Trainer must have a strong connection to use Z-Moves.
Z-Moves were introduced in the Alola Region and were like a reward for the Island Challenge. Z-Power orginated from the scattared light and pokemon body parts from Necrozma, a legendary Pokemon.
Some Pokemon have unique and exclusive Z-Crystal that requires the Pokemon to know a specific move which is their signature move. For example, Pikachu has to know Volt Tackle and the trainer must have a Pikanium Z to use the Z-Move "Catastropika".
Z-Crystals can also work on using Status Moves. Instead of dealing damage, the Z-Power will boost specfifc stats before the status effect applies. For example, using Thunder Wave with the Electrium Z turns into Z-Thunder Wave that will raise Special Defense one stage and will paralyze the opponent.