The best way to avoid copyright infringement is to get permission from the copyright owner before using their work. This can be done by contacting the owner directly or through a licensing agency. It's also important to be aware of fair use guidelines, which allow for limited use of copyrighted material without permission for certain purposes such as commentary or criticism.