Nowadays, there are several MDD approaches that have defined Domain-Specific Modeling Languages (DSML) that are oriented to representing their particular semantics. However, since UML is the standard language for software modeling, many of these MDD approaches are trying to integrate their semantics into UML in order to use UML as DSML. The use of UML profiles is a recommended strategy to perform this integration allowing, among other benefits, the use of the existent UML modeling tools. However, in the literature related to UML profile construction; it is not possible to find a standardized UML profile generation process. Therefore, a process that integrates a DSML into UML through the automatic generation of a UML profile is presented in this paper. This process facilitates the correct use of UML in a MDD context and provides a solution to take advantage of the benefits of UML and DSMLs.