The phrase "to tie a shoe" means to fasten or secure the laces of a shoe in a knot so that it stays on your foot without coming undone.