Computer wakes up itself instantly after suspend

Hey there, I have Ubuntu MATE 16.04.3 LTS, and my computer sometimes goes to sleep and sometimes not (wakes up instantly). I have no clue what can cause it. Had anyone issues with that? There seem to be lots of questions about that as I googled, but every solution that I found was different than previous and very confusing. It’s my only issue with Linux. Thanks.