I opened the windows to dehumidify the room.

Literal

Room's dehumidification [for-のため] windows [object-を] opened.

除湿 (dehumidification) is a Sino-Japanese compound (除 remove + 湿 moisture). のため marks the purpose.