A rash can be caused, directly or indirectly, by a bacterial, viral, or fungal infection. Alternatively, a rash may be unrelated to an infectious organism, such as from an underlying medical illness. Medications, chronic medical conditions, and allergic reactions (hives) are among the multiple different causes of rash.