A way around an obstruction that would otherwise keep a person from obtaining a goal. This can apply literally and metaphorically and most often applied when bending the rules.
Person 1: I am not allowed to visit my friend in college because I am not accompanied by an adult.
Person 2: I found a loophole that allows you to go on campus if you see a student advisor.