This post may contain affiliate links. Please read my disclosure policy.
You can get to Mallorca from Barcelona either by plane or by ferry.
The journey by ferry takes about 8 and a half hours. The average time of a flight from Barcelona to Mallorca is 50 minutes.
Ferry trips are available with Balearia, you can see timetables on their website: https://www.balearia.com