Antihydrogen, the bound state of a positron and an antiproton, is the simplest pure anti-atomic system and an excellent candidate to test the symmetry between matter and antimatter. This thesis focuses on the magnetic confinement of antihydrogen and the first ever resonant interaction with trapped antihydrogen, as performed by the ALPHA collaboration. The ALPHA apparatus and the techniques that have been developed to form, trap, probe, and detect antihydrogen atoms will be described in detail. The first successful demonstration of trapped antihydrogen will then be described. In the initial demonstrations, 38 trapped antihydrogen atoms were detected after being confined for at least 172 ms. Since then, over 400 antihydrogen atoms have been trapped and confinement times of 1000 s (over 15 minutes) have been demonstrated. Spectroscopy of these trapped antihydrogen atoms is the next major step forward. As an initial proof-of-principle demonstration, ALPHA induced and observed resonant positron spin flip (PSR) transitions between the ground states of antihydrogen. [...]