At the end of season 5, Alexis goes on a 6-week study trip to Costa Rica, and in season 6 she returns with a boyfriend in tow, named Pi. She and Pi eventually get an apartment together, much to Castle's disapproval, and after a brief estrangement and solving a case together, she and Castle reconcile.