A barnacle is a type of arthropod belonging to infraclass Cirripedia in the subphylum Crustacea, and is hence related to crabs and lobsters.