Collaboration in computer science refers to the act of working together with others to solve problems, develop software, or complete projects. It involves effective communication, sharing ideas and resources, and coordinating efforts towards a common goal.