There are a variety of different, legal ways to get free ebooks, mostly older titles in the public domain. Your public library may have a service that gives you access to additional contemporary books.
If you prefer audio books, LibriVox includes audio versions of many of the works found on Project Gutenberg.