The two technologies are IoT and cloud computing have seen an instantaneous and independent development. The integration of IoT and cloud has the chance to enlarge the use of the available technology that provided in a cloud computing environment. IoT can service from the resources and virtually unlimited capabilities of cloud to compensate its technological constraints such as processing, storage and communications. Cloud will use from IoT by increasing its range to handle the important world things during a lot of new services and distributed dynamic manner for an outsized variety of real-life eventualities. This paper provides a survey of the IoT and cloud computing. It also focuses on challenges in the integration of IoT and cloud computing.