An LCCN (Library of Congress Control Number) is used by libraries to buy books for their catalogs. This number needs to be listed on the copyright page of your book, so you need to get one before publishing, but ideally after the book has been written.
Sign up for an account at https://locexternal.servicenowservices.com/auth
Click "Request LCCN"
Fill out the information about your book (note if you don't know the exact final page counts and such, use an estimate)
Only submit a single ISBN of your book (preferably of the print book)
You'll get an LCCN to include on the copyright page
After you have a copy of your printed book, mail it to the address provided