A Cocoa Beach math teacher was arrested for alleged sexual activity with a student after parents discovered the relationship.