The following sentence does not have a parallel structure, so how could it be made parallel?
"Mary likes hiking, swimming, and to ride a bicycle."
change "to ride a bicycle" to "riding a bicycle," so the activities all end with -ing.
new: Mary likes hiking, swimming, and riding a bicycle.