Be tried (put on trial) = be judged in a court of law: ‘He is being tried for the murder of his wife.’ ‘He was tried and sentenced to life imprisonment.’
Judge sb by a particular measure; to form an opinion about sb: ‘You should not judge people by their appearance.’