A research paper that a student writes in order to complete the requirements for a doctorate; a dissertation.
A thesis submitted for a master's degree.