It's not all that different from taking out a mortgage as you're investing in an asset either way. It's more straightforward to sell the asset off if you get in a crunch as you can sell your shares off and get your money in a day or two usually. However, if you've still got debt lying around (e. g. why you got the line of credit in the first place), I'd argue pay that off first. You're getting a guaranteed return of whatever your interest rate is. Plus you want to avoid any penalty interest if you don't pay off the line of crrdit at the end of the term.