Portable diesel generators are primarily used to provide temporary or backup electrical power in locations without access to the grid or during power outages. They are versatile and can be used for various applications, including powering tools at construction sites, providing electricity for events, and serving as emergency power sources.