What are Delphi units? Unit is nothing but a text file that can be complied in a module of code.there are 2 different types of units Project Source unit and it can be saved with an extension of .DPRand Source code unit with an associated form.