A positive pole (anode) is placed on one end of the gel and a negative pole (cathode) is placed on the other end for SDS-PAGE. Proteins may be sorted by size using electrophoresis because the negatively charged SDS that is coupled to the proteins causes the protein complexes to migrate towards the positive pole, or anode. Generally speaking, a protein migrates through the gel more slowly the larger it is.
For more: https://www.antibody-creativebiolabs.com/running-an-sds-page-gel-in-western-blot-assay.htm