The invention discloses an intelligent door and window control system based on a computer. The system comprises an intelligent terminal and further comprises an outdoor detection module, a network managing module, an indoor detection module, a central processing module and a door and window control module. When no person is at home, all windows are automatically closed, the windows are arranged tobe light-proof, privacy can be protected, and the probability of house stealing can be reduced. When a person is at home, for a room without the person, according to the outdoor temperature, whethera window is opened for ventilation is decided according to the condition of whether rainfall appears or not and whether it is night or not, if the temperature is proper, the window is opened for ventilation, safety and comfort are improved, and water is prevented from entering the room. For the room with the person, according to the user behavior, window adjusting is automatically carried out, andtemperature, ventilation and privacy in all rooms can be ensured.