DUI means to "driving under the influence". DWI means "driving while intoxicated". For all practical purposes they are the same thing and the terms can be used interchangeably. It's mainly a state-specific naming convention. So, for example in California it's referred to as a DUI. While in Texas they refer to it as a DWI.