It is a 'second layer' technology meaning that it is developed as a chain that exists separate yet connected to Bitcoin. The only time I believe that it generates transactions on the Bitcoin blockchain is whenever lightning channels are opened and closed. This is the beauty of lightning because it's ideal for managing all the smaller transactions as a sidechain without bombarding the main Bitcoin network - it only talks to the main Bitcoin network once two lightning channels need to settle up.