Montserrat is a mountain top monastery in Catalonia, Spain. Situated atop an unusual rock mountain, it is very popular among Catalans, and Catholic pilgrims come from far and wide to see the Black Madonna.
Link to official site of Montserrat: 
By train + cable car
Travelling from Barcelona, take Ferrocarrils de la Generalitat (R5 Line) train from Plaça d'Espanya to Montserrat-Aeri. Trains run every hour, combined return adult ticket costs 15,60€.
From Montserrat-Aeri, take the cable car up.
By train + Funicular
Similarly to the previous option take the same R5 Line train from Plaça d'Espanya, Barcelona but to the next stop: at Monistrol de Montserrat you can change for the funicular railway (Cremallera de Montserrat). Combined return adult ticket costs 14,60€. Total travel time is 90 minutes one way. Last funicular runs at 18.22 downhill.
Buses from Barcelona leave from the Plaça de la Universitat in the morning.
The only way to get around the Montserrat monastery complex is on foot (it's not too big though!)
Places to eat at Montserrat are limited and expensive but of high quality and good meal choices (cafeteria style), so it's a great idea to bring your own lunch. If you're coming from Barcelona, a good plan is to get up early and head to La Boqueria, the big open market near the head of Las Ramblas, to stock up on sandwich/snack fixin's - bread, cheese, meat, olives, wine, etc.. Pack it up and bring it with you. Mmm...
The marketplace also offers many delectable homemade goods sold by locals, including canned honey, pastries, preserves, cured meat and candy.
Montserrat is a very large summit, although the town is relatively safe and tourist-friendly, it can be very dangerous for hiking as much of it is unchartered woodland. By all means, if you are traveling with a group, do not stray from them if you decide to go hiking. If you find out that someone has strayed from your group, summon the local authorities.