document.ready

document.ready

I'm new to jquery. I did some pages in jquery. I'm confuse about the use of  $(document).ready.
Whether I put my code inside or out of $(document).ready, it works fine. In plain english, how can we describe the use of $(document).ready?