This is book two from the Septimus Heap series.
In this book we go back in time, and Septimus Heap is the main character. He is apprenticing to become a wizard under the ExtraOrdinary wizard Marcia Overstrand.
Septimus has an older brother named Simon who is a dyrke wizard and is causing trouble. Under direction of Domdaniel (an evil spirit), Simon captures Princess Jenna because she is the one that will prevent the evil spirit from getting back his human body.
I am really enjoying this series and am happy that there are so many sequels.