Downloading copyrighted books from Library Genesis (LibGen) is
generally illegal in most countries. LibGen hosts a vast collection of copyrighted works without the permission of copyright holders. Copyright law protects authors' and publishers' rights to control the reproduction and distribution of their work. Downloading and sharing copyrighted material without authorization infringes on these rights.
While the legality can vary slightly depending on the specific country and its laws, the overwhelming consensus is that using LibGen to download copyrighted books is illegal. You risk facing legal consequences such as fines or lawsuits if caught.